<?php


namespace App\Exceptions\my;


class MyException extends \Exception
{
    /**
     * 状态码
     * @var int|mixed
     */
    public $code = 0;

    /**
     * 错误具体信息
     * @var mixed|string
     */
    public $message = '参数错误';

    /**
     * 构造函数，接收关联数组
     * BaseException constructor.
     * @param string $params
     */
    public function __construct($params='')
    {
        $this->message = $params;
    }

}